<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>创建person对象</title>
	</head>
	<body>
		<script type="text/javascript">
			var person=new Object();
			person.name="郎晓明";
			person.age="38";
			person.work="中国内地男演员、歌手";
			person.address="中国北京海淀区";
			person.into=function(){
				var str=this.name+"\n"+this.age+"\n"+this.work+"\n"+this.address;
				alert(str);
			}
			person.into1=function(){
				var str="姓名："+this.name+"<br/>年龄："+this.age+"<br/>工作："+this.work+"<br/>住址："+this.address;
				document.write(str);
			}
			person.into();
			person.into1();
			var a="123abc"-"123";
			alert(a);
		</script>
	</body>
</html>
